package com.offices.subscribe.dto.message.videomessage;


import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.offices.subscribe.dto.message.BaseMessage;
import lombok.Data;

import java.util.Map;

@Data
public class VideoMessage extends BaseMessage {

    @JacksonXmlElementWrapper(localName = "Video")
    private Video video;

    public VideoMessage(Map<String, String> request, Video video) {
        super(request);
        //设置回复类型为video
        this.setMsgType("video");
        this.setVideo(video);
    }
}
